﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL_Class;

namespace NLLSite.Administrator.UserControl
{
    public partial class AddNewPartner : System.Web.UI.UserControl
    {
        Doitac dt = new Doitac();
        protected void Page_Load(object sender, EventArgs e)
        {
            LblCheck.Text = string.Empty;
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            TxtimgLink.Text = string.Empty;
            TxtBanLink.Text = string.Empty;
            LblCheck.Text = string.Empty;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            LblCheck.Text = dt.AddNewPartner(TxtimgLink.Text, TxtBanLink.Text);
            Response.Redirect("QuanlyDoiTac.aspx");
        }
    }
}